package dao;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Course entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "course", catalog = "assistedlearning")
public class Course implements java.io.Serializable {

    // Fields

    private String courseid;
    private String name;
    private String description;
    private Integer chaptercounts;

    // Constructors

    /** default constructor */
    public Course() {
    }

    /** minimal constructor */
    public Course(String courseid, String name) {
	this.courseid = courseid;
	this.name = name;
    }

    /** full constructor */
    public Course(String courseid, String name, String description) {
	this.courseid = courseid;
	this.name = name;
	this.description = description;
    }

    // Property accessors
    @Id
    @Column(name = "courseid", unique = true, nullable = false, length = 4)
    public String getCourseid() {
	return this.courseid;
    }

    public void setCourseid(String courseid) {
	this.courseid = courseid;
    }

    @Column(name = "name", nullable = false, length = 20)
    public String getName() {
	return this.name;
    }

    public void setName(String name) {
	this.name = name;
    }

    @Column(name = "description", length = 256)
    public String getDescription() {
	return this.description;
    }

    public void setDescription(String description) {
	this.description = description;
    }
    
    @Column(name = "chaptercounts")
    public Integer getChaptercounts() {
        return this.chaptercounts;
    }

    public void setChaptercounts(Integer chaptercounts) {
        this.chaptercounts = chaptercounts;
    }
  
}